{include file='header.html'}
<ul class="nav nav-tabs">
<li class="active"><a href="{$appadmin}?m=sites">{$lang.sites_admin}</a></li> 
<li><a href="{$appadmin}?m=sites&a=add">{$lang.sites_add}</a></li>
</ul>
<div class="search-form">
<form method="get" action="{$appadmin}">
<input type="hidden" name="m" value="sites" />
<input type="text" name="keyword" value="{$smarty.get.keyword|html}" />
<button type="submit" class="btn">搜索</button>
</form>
</div>
<table width="100%" class="table table-bordered">
  <tr>
    <td width="8%" align="center">siteid</td>
    <td width="22%" align="center">{$lang.sitename}</td>
    <td width="20%" align="center">{$lang.domain}</td>
    <td width="20%" align="center">{$lang.title}</td>
    <td width="10%" align="center">状态</td>
    <td width="20%" align="center">{$lang.operation}</td>
  </tr>
  {foreach item=s from=$data}
  <tr>
    <td align="center">{$s.siteid}</td>
    <td align="center">{$s.sitename}</td>
    <td align="center"><a href="{if $s.domain}http://{$s.domain}{else}/index.php?siteid={$s.siteid}{/if}" target="_blank">{$s.domain}</a></td>
    <td align="center">{$s.title}</td>
    <td align="center">{if $s.is_open eq 1}开启{else}关闭{/if}</td>
    <td align="center"><a href="{$appadmin}?m=sites&a=add&siteid={$s.siteid}">{$lang.edit}</a> <a href="{if $s.domain}http://{$s.domain}{else}/index.php?siteid={$s.siteid}{/if}" target="_blank">{$lang.look} </a>  
    
    <a href="javascript:;" class="delete" url="{$appadmin}?m=sites&a=delete&ajax=1&siteid={$s.siteid}">删除</a>
    {if $ssadmin.isfounder or $ssadmin.cityid gt 0}
    <a href="{$appadmin}?m=iframe&a=top&setsite=1&siteid={$s.siteid}" target="header-frame">切换</a>{/if}</td>
  </tr>
  {/foreach}
  
</table>
{$pagelist}
{include file='footer.html'}